<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>领取记录</title>
    <!--<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />-->
    <!--<link rel="stylesheet" href="../mui/css/mui.min.css"/>-->
    <style>
        .container {
            position: relative;
        }
        table {
            width: 100%;
            font-size: 14px;
            text-align: center;
        }
        .search-query {
            margin-top: 10px;
            font-size: 14px;
            line-height: 55px;
        }
        .search-query input{
            width: 100px;
        }
        .search-query button {
            vertical-align: middle;
        }
        table thead {
            background: #dddddd;
        }
        table tbody tr:nth-child(even) {
            background: #eeeeee;
        }
        .mui-bg-primary {
            background: #8a6de9;
            color: #FFFFFF;
            border: none;
            outline: none;
            width: 60px;
            height: 20px;
            line-height: 20px;
            border-radius: 4px;
        }
        table tr {
            height: 30px;
            line-height: 30px;
        }
        .dialog {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background: rgba(0,0,0,0.5);
            overflow: scroll;
            padding-bottom: 50px;
            display: none;
        }
        .dialog>div{
            width: 600px;
            margin: 50px auto 0;
            background: #FFFFFF;
            font-size: 14px;
            padding: 20px;
            box-sizing: border-box;
        }
        .dialog ul {
            list-style: none;
        }
        .dialog li {
            margin-bottom: 10px;
        }
        .dialog>div span {
            display: inline-block;
            width: 100px;
            height: 30px;
            line-height: 30px;
        }
        .dialog>div input {
            width: 300px;
            height: 30px;
            line-height: 30px;
            border: 1px solid #dddddd;
            border-radius: 4px;
            outline: none;
        }
        .dialog>div>div {
            text-align: center;
        }
        .dialog>div button {
            border: none;
            outline: none;
            background: #8a6de9;
            color: #ffffff;
            width: 100px;
            height: 40px;
            line-height: 40px;
            font-size: 14px;
        }
        .logout {
            color: #2d89e8;
            font-size: 14px;
            border: none;
            outline: none;
            background: transparent;
            float: right;
            cursor: pointer;
        }
    </style>
    <script src="../../mui/js/mui.min.js"></script>
</head>
<body>
    <div class="container">
        <!--<div>-->
            <!--<button class="logout" id="logout">退出</button>-->
        <!--</div>-->
        <!--<div class="search-query">-->
            <!--<span>用户名</span>-->
            <!--<input type="text" id="userName"/>-->
            <!--<span>年龄</span>-->
            <!--<input type="text" id="age"/>-->
            <!--<button type="button" class="btn-primary" id="searchBtn">搜索</button>-->
        <!--</div>-->
        <table>
            <thead>
                <tr>
                    <th>编号</th>
                    <th>用户昵称</th>
                    <th>用户姓名</th>
                    <th>手机号</th>
                    <th>领取日期</th>
                    <th>商户</th>
                    <th>领取数量</th>
                    <th>类型</th>
                </tr>
            </thead>
            <tbody>
                <tr th:each="record ,recordStat: ${recordList}">
                    <td th:text="${recordStat.index+1}"></td>
                    <td th:text="${record.nickName}"></td>
                    <td th:text="${record.realName}"></td>
                    <td th:text="${record.mobile}"></td>
                    <td th:text="${record.busName}"></td>
                    <td th:text="${record.num}"></td>
                    <td th:text="${#dates.format(record.getTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                    <td th:text="${record.type==1?'会员酒':'推广酒'}"></td>
                </tr>
                <!--<tr>-->
                    <!--<td>2</td>-->
                    <!--<td>liyun</td>-->
                    <!--<td>爱民烟酒店</td>-->
                    <!--<td>河北廊坊</td>-->
                    <!--<td>18222222222</td>-->
                    <!--<td>15</td>-->
                    <!--<td>已领取</td>-->
                    <!--<td>123456</td>-->
                    <!--<td>104.5</td>-->
                    <!--<td>97.6</td>-->
                    <!--<td>2018-10-25</td>-->
                    <!--<td>-->
                        <!--<button class="btn mui-bg-primary btn-small" style="color: #FFFFFF;" data-id="2">编辑</button>-->
                    <!--</td>-->
                <!--</tr>-->
            </tbody>
        </table>
        <div class="dialog" id="dialog">
            <div>
                <ul>
                    <li>
                        <span>用户姓名</span>
                        <input type="text" id="realname"/>
                        <input type="hidden" id="id"/>
                    </li>
                    <li>
                        <span>身份证号</span>
                        <input type="text" id="idCard"/>
                    </li>
                    <li>
                        <span>手机号</span>
                        <input type="text" id="mobile"/>
                    </li>
                    <li>
                        <span>地址</span>
                        <input type="text" id="address"/>
                    </li>
                </ul>
                <div>
                    <button id="makesure" class="dialogBtn">保存</button>
                    <button id="cancel" class="dialogBtn">取消</button>
                </div>
            </div>
        </div>
    </div>
    <script src="../../js/userList.js"></script>
</body>
</html>